package com.free.wang.demo02.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.free.wang.demo02.mapper.StudentMapper;
import com.free.wang.demo02.entity.Student;
/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-04 16:22:00
 */
@Service
public class StudentService{

    @Autowired
    private StudentMapper studentMapper;

    
    public int deleteByPrimaryKey(String sId) {
        return studentMapper.deleteByPrimaryKey(sId);
    }

    
    public int insert(Student record) {
        return studentMapper.insert(record);
    }

    
    public int insertSelective(Student record) {
        return studentMapper.insertSelective(record);
    }

    
    public Student selectByPrimaryKey(String sId) {
        return studentMapper.selectByPrimaryKey(sId);
    }

    
    public int updateByPrimaryKeySelective(Student record) {
        return studentMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Student record) {
        return studentMapper.updateByPrimaryKey(record);
    }

}
